package com.lanou3g.test;

import com.lanou3g.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AnnoAopTest2 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("spring-web2.xml");
        UserService userService = ac.getBean(UserService.class);
        System.out.println(userService.getClass());
        userService.add();
    }
}
